<template>
  <div class="home_grid">
    <!-- 1行 -->
    <router-link to="systemClass" class="crid_item">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-caozuoxitong"></use>
      </svg>
      <span>系统课</span>
    </router-link>
    <router-link to="openClass" class="crid_item">
      <svg class="icon special_icon" aria-hidden="true">
        <use xlink:href="#icon-gongkai"></use>
      </svg>
      <span>公开课</span>
    </router-link>
    <router-link to="profileMe" class="crid_item">
      <svg class="icon special_icon" aria-hidden="true">
        <use xlink:href="#icon-kehuziliao"></use>
      </svg>
      <span>我的资料</span>
    </router-link>
    <router-link to="examStoreroom" class="crid_item">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-liebiao"></use>
      </svg>
      <span>烤题库</span>
    </router-link>
    <!-- 2行 -->
    <router-link to="productAbout3" class="crid_item">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-dayiqun"></use>
      </svg>
      <span>答疑</span>
    </router-link>
    <router-link to="staffWorker4" class="crid_item">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-zixun1"></use>
      </svg>
      <span>课程资讯</span>
    </router-link>
    <router-link to="dietRecords5" class="crid_item">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-kechengfangxiang"></use>
      </svg>
      <span>我的课表</span>
    </router-link>
    <router-link to="dietRecords6" class="crid_item">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-gengduo1"></use>
      </svg>
      <span>更多</span>
    </router-link>
  </div>
</template>

<script>
export default {
  name: "HomeGrid",
};
</script>

<style scoped lang="less">
.icon {
  width: 2.6em;
  height: 2.6em;
  vertical-align: -0.15em;
  fill: currentColor;
  //overflow: hidden;
  //border-radius: 50%;
}
.special_icon {
  width: 2.5rem;
  height: 2rem;
}
.home_grid {
  width: 95%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  border-radius: 0.6rem;
  margin: 0.5rem auto 0.5rem;
  box-sizing: border-box;
  // border: 1px solid #ffeb00;
}
.crid_item {
  width: 5.1rem;
  height: 4rem;
  margin: 0.7rem 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #656464;
    margin: 0.2rem 0;
  }
}
</style>
